package com.zhiyou100.pra2;

/**
 * 测试类
 */
public class Test {

    public static void main(String[] args) {
        Master master = new Master();
        Pet pet;
        pet = new Cat();
        master.feed(pet);
        pet = new Dog();
        master.feed(pet);
    }
}
